{% extends 'myadmin/base.html' %}
{% block myadmin_course_audit_active %}
    active
{% endblock %}
{% block myadmin %}
    {% load static %}
    <div class="">


        <div class="col-md-6 offset-1">
            <h3 style="margin-top: 30px">&emsp;&emsp;课程审核</h3>
            <hr>
            {% load  static %}
            <form action="{% url 'myadmin_cource_audit_id' cource.id %}" method="post" enctype="multipart/form-data">
                {% csrf_token %}
                <div class="row mb-3">
                    <label for="inputEmail3" class="col-sm-2 col-form-label">课程名</label>
                    <div class="col-sm-10">
                        <input readonly value="{{ cource.name }}" name="name" required type="text" class="form-control"
                               id="inputEmail3">
                    </div>
                </div>
                <div class="row mb-3">
                    <label for="inputEmail3" class="col-sm-2 col-form-label">创建用户</label>
                    <div class="col-sm-10">
                        <input readonly value="{{ cource.user }}" name="name" required type="text" class="form-control"
                               id="inputEmail3">
                    </div>
                </div>
                <div class="row mb-3">
                    <label for="inputPassword3" class="col-sm-2 col-form-label">图片</label>
                    <div class="col-sm-10">
                        <img src="/static/media/{{ cource.photo }}" height="80px" width="100px"
                             alt="{{ cource.photo }}">

                    </div>

                </div>
                <div class="row mb-3">
                    <label for="inputPassword3" class="col-sm-2 col-form-label">课程简介</label>
                    <div class="col-sm-10">
                        <textarea readonly name="introduction" required class="form-control"
                                  id="exampleFormControlTextarea1"
                                  rows="3">{{ cource.introduction }}</textarea>
                    </div>
                </div>


                <fieldset class="row mb-3">
                    <legend class="col-form-label col-sm-2 pt-0">课程类型</legend>
                    <div class="col-sm-10">
                        <input readonly value="{% if cource.type == 1 %}
                        工学
                        {% endif %} " name="name" required type="text" class="form-control"
                               id="inputEmail3">
                    </div>
                </fieldset>
                <fieldset class="row mb-3">
                    <legend class="col-form-label col-sm-2 pt-0">审核</legend>
                    <div class="col-sm-10">
                        <select name="audit" required class="form-select" aria-label="Default select example">
                            <option selected>请选择</option>
                            <option value="2">同意</option>
                            <option value="3">拒绝</option>

                        </select>

                    </div>
                </fieldset>

                <br>

                <button type="submit" class="btn btn-primary offset-9 w-25">确认</button>
            </form>
        </div>
        <hr>


    </div>
{% endblock %}